import './assets/main.scss'

import { createApp } from 'vue' //主项目
import ElementPlus from 'element-plus' //element组件库
import 'element-plus/dist/index.css' //element样式
import App from './App.vue' //用于挂载vue
import router from '@/router' //用于管理子路由
import { createPinia} from 'pinia' //用于存储token
import { createPersistedState } from 'pinia-persistedstate-plugin' //持久化存储
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'//element中文语言包

const app = createApp(App)
const pinia = createPinia()
const persist = createPersistedState();

app.use(ElementPlus,{locale:zhCn})
app.use(pinia)
app.use(router)

pinia.use(persist)
app.mount('#app')